package com.csair.irp.job.file.exception;

import com.csair.irp.job.file.parser.base.FileManagePO;

public class FileParseException extends DataFileException {

    private FileManagePO.StateEnum state;

    public FileParseException(FileManagePO.StateEnum state) {
        super(state.getDesc());
        this.state = state;
    }

    public FileParseException(FileManagePO.StateEnum state, Object message) {
        super(state.getDesc() + "\n" + message);
        this.state = state;
    }

    public FileParseException(FileManagePO.StateEnum state, Exception cause) {
        super(state.getDesc(), cause);
        this.state = state;
    }

    public FileManagePO.StateEnum getState() {
        return state;
    }
}


